//
//  Status.h
//  王雷Sinoweibo
//
//  Created by wanglei on 16/11/15.
//  Copyright © 2016年 wanglei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "User.h"

@interface Status : NSObject

@property(nonatomic,assign)NSNumber *id;
//微博创建时间
@property(nonatomic,copy)NSString *created_at;
//微博正文
@property(nonatomic,copy)NSString *text;
//微博来源
@property(nonatomic,copy)NSString *source;

@property(nonatomic,strong)User *user;
//配图视图的数组属性
@property(nonatomic,copy)NSArray <NSDictionary *>*pic_urls;
//将pic_urls内的属性遍历.取出对应的值转换为nsurl类型储存到下面这个数组中
@property(nonatomic,copy)NSArray <NSURL *>*imageURLs;
//计算在下载单张图片的时候该下载谁的图片
//被转发的原创微博中如果有图片  转发微博中就一定不会有图片
@property(nonatomic,copy)NSArray <NSURL *>*pictureURLs;

@property(nonatomic,strong)Status *retweeted_status;

- (instancetype)initWithStatusDict:(NSDictionary *)dict;
+ (instancetype)StatuesWithDict:(NSDictionary *)dict;
- (void)setValue:(id)value forKey:(NSString *)key;

@end
